package com.xiaoxiang.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoxiang.auth.dao.RoleDao;
import com.xiaoxiang.auth.entity.Role;
import com.xiaoxiang.auth.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Role)表服务实现类
 *
 * @author haha
 * @since 2022-02-13 11:49:08
 */
@Service("roleService")
public class RoleServiceImpl extends ServiceImpl<RoleDao, Role> implements RoleService {

    /**
     * 根据用户id查询对应的角色
     */
    public List<Role> queryRoleByUserId(Long uid) {
        return baseMapper.queryRoleByUserId(uid);
    }
}
